/**
 * jims
 */
package com.jims.master.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

/**
 * 地址表Entity
 * @author jct
 * @version 2017-12-05
 */
public class UserAddress extends DataEntity<UserAddress> {
	
	private static final long serialVersionUID = 1L;
	private String userid;		// 用户id
	private String name;		// 姓名
	private String area;		// 地区
	private String address;		// 详细地址
	private String phone;		// 电话
	private String isdefault;   //1默认收货地址

	public String getIsdefault() {
		return isdefault;
	}

	public void setIsdefault(String isdefault) {
		this.isdefault = isdefault;
	}

	public UserAddress() {
		super();
	}

	public UserAddress(String id){
		super(id);
	}

	@Length(min=1, max=64, message="用户id长度必须介于 1 和 64 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=1, max=16, message="姓名长度必须介于 1 和 16 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=32, message="地区长度必须介于 1 和 32 之间")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=1, max=100, message="详细地址长度必须介于 1 和 100 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=30, message="电话长度必须介于 0 和 30 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
}